package com.example.canteen;


import com.example.canteen.controller.SuppliersController;
import com.example.canteen.controller.UserController;
import com.example.canteen.domain.Suppliers;
import com.example.canteen.domain.User;
import com.example.canteen.util.AjaxResult;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class testSuppliersController {
    @Autowired
    private SuppliersController suppliersController;
    @Test
    public void testAdd(){
        Suppliers suppliers= new Suppliers();
        suppliers.SupplierID("00001");
        suppliers.SupplierName("测试用户1");
        AjaxResult ajaxResult = suppliersController.addSuppliers(suppliers);
        Assertions.assertTrue(ajaxResult.isSuccess());
    }

}

